package com.http.nio.core.config;

import com.http.nio.core.CloudService;
import com.http.nio.core.CloudServlet;
import lombok.Data;

/**
 * @author YL
 **/
@Data
public class ServerConfig {

    private final int port;
    private final CloudService cloudService;

    public ServerConfig(int port, CloudServlet... cloudServlets) {
        this.port = port;
        this.cloudService = new CloudService(cloudServlets);
    }
}
